// test_scripts/prepare_upgrade.js
async function main() {
    const proxyAddress = '0xB918071C28809EA2D3f1D6b9b9d27F283C89d25f';

    const BlindBoxV2 = await ethers.getContractFactory("BlindBox");
    const box = await upgrades.upgradeProxy(proxyAddress, BlindBoxV2);
    console.log("BlindBox upgraded address:", box.address);
}

main()
    .then(() => process.exit(0))
    .catch(error => {
        console.error(error);
        process.exit(1);
    });